<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Calculator UI Design</title>
    <link rel="stylesheet" type="text/css" href="Calculator2.css" />>
</head>
<body>
<form class="calculater" name="calc">
    <input class="value" type="text" name="txt" readonly=""/>
    <span class="num clear" onclick="calc.txt.value =calc.txt.value.substr(0,calc.txt.value.length-calc.txt.value.length)">AC</span>
    <span class="num she" onClick="calc.txt.value =calc.txt.value.substr(0,calc.txt.value.length-1)">Back</span>
    <span class="num she" onClick="calc.txt.value =calc.txt.value*0.01">%</span>
    <span class="num operator" onClick="calc.txt.value +='/'">/</span>
    <span class="num" onClick="calc.txt.value +='1'">1</span>
    <span class="num" onClick="calc.txt.value +='2'">2</span>
    <span class="num" onClick="calc.txt.value +='3'">3</span>
    <span class="num operator" onClick="calc.txt.value +='*'">*</span>
    <span class="num" onClick="calc.txt.value +='4'">4</span>
    <span class="num" onClick="calc.txt.value +='5'">5</span>
    <span class="num" onClick="calc.txt.value +='6'">6</span>
    <span class="num plus" onClick="calc.txt.value +='+'">+</span>
    <span class="num" onClick="calc.txt.value +='7'">7</span>
    <span class="num" onClick="calc.txt.value +='8'">8</span>
    <span class="num" onClick="calc.txt.value +='9'">9</span>
    <span class="num operator" onClick="calc.txt.value +='-'">-</span>
    <span class="num zero" onClick="calc.txt.value +='0'">0</span>
    <span class="num" onClick="calc.txt.value +='.'">.</span>
    <span class="num equal" onClick="calc.txt.value =eval(calc.txt.value )">=</span>
    <span class="num history" onClick="calc.txt.value=calc.txt.history">History</span>
</form>
</body>
</html>
